package com.dxg.msns.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.dxg.msns.user.mapper")
public class MSNSUserServiceApplication {
    public static void main(String[] args) {
        try {
            SpringApplication.run(MSNSUserServiceApplication.class, args);
            // Forcefully throwing an exception after the application starts
            throw new RuntimeException("Simulated runtime exception during startup!");
        } catch (Exception e) {
            // Handle the exception as needed or rethrow it
            System.err.println("An error occurred: " + e.getMessage());
            // Optionally rethrow if you want the application to terminate with an error
            throw e;
        }
    }
}
